Component({
  properties: {
    icon: { type: String, value: '' },
    text: { type: String, value: '' },
    url: { type: String, value: '' }
  },
  methods: {
    navigateToUrl() {
      if (this.data.url) {
        wx.navigateTo({ url: this.data.url });
      }
    }
  }
})